import request from '@/request';

export const submitOrder = (data) => {
	return request('/wechat/dishOrder/mainOrderAdd', data, 'post');
}

export const fetchDishOrderSub = (data) => {
	return request('/wechat/dishOrderSub/pageQuery', data, 'post');
}

export const fetchAreaStatistics = (data) => {
	return request('/wechat/dishOrderSub/areaStatistics', data, 'post');
}

export const fetchStreetStatistics = (data) => {
	return request('/wechat/dishOrderSub/streetStatistics', data, 'post');
}
export const fetchRoadStatistics = (data) => {
	return request('/wechat/dishOrderSub/addressStatistics', data, 'post');
}

export const joinGroupAdd = (data) => {
	return request('/wechat/dishOrder/joinGroupAdd', data, 'post');
}
export const getByOrderId = (data) => {
	return request('/wechat/dishOrderDish/getByOrderId', data, 'post');
}

export const getBookDetail = (data) => {
	return request('/wechat/dishOrder/bookDetail', data, 'post');
}

// 查询500m内订单
export const fetch500m = (data) => {
	return request('/wechat/dishOrder/nearbyOrder', data, 'post');
}

